Stores as Homomorphisms and Their Transformations: A Uniform Approach to Structured Types in Imperative Languages

نویسندگان

  • Egidio Astesiano
  • Gianna Reggio
  • Elena Zucca
چکیده

We address the problem of giving a clean and uniform mathematical model for handling user deened data types in imperative languages, contrary to the ad-hoc treatment usual in classical denotational semantics. The problem is solved by deen-ing the store as a homomorphic mapping of an algebraic structure of left values modelling containers into another one of right values modelling contents. Consequently store transformations can be deened uniformly on the principle that they are minimal variations of the store embedding some basic intended eeects and compatible with the homomorphic structure of the store.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Semantical Equivalence of Process Functional and Imperative Programs

Source-to-source transformations play crucial role in weaving multiple aspects of computation in aspect languages. Except that expressing imperative programs in the uniform form of expressions simplifies these transformations, this form is useful from the viewpoint of recognizing different aspects of computation at any level of program structure. In this paper we present the relation between im...

متن کامل

Transforming Sequences using Threaded Morphisms

Sequences are very useful structures in programming languages. Functional programming languages allow the convenient deenition of transformations between sequence algebras and other types of data algebra. Sequence homomorphisms are an important class of such transformations. However, not all desired transformations can be expressed as homomor-phisms. This paper describes a class of transformati...

متن کامل

A Contrastive Study of Request Speech Act in English and Persian Novels: Natural Semantic Metalanguage Approach

The Natural Semantic Metalanguage (NSM) Approach claims that there are some universalities in all languages. Speech acts seem to be present in all languages, but considering this approach, research has not indicated whether request speech act differs from one language to another. Thus, this study intended to investigate whether request strategies are used differently in English and Persian roma...

متن کامل

A Semantics for Probabilistic Control-Flow Graphs

This article develops a novel operational semantics for probabilistic control-flow graphs (pCFGs) of probabilistic imperative programs with random assignment and “observe” (or conditioning) statements. The semantics transforms probability distributions (on stores) as control moves from one node to another in pCFGs. We relate this semantics to a standard, expectation-transforming, denotational s...

متن کامل

Implementation of the imperative / rule based language PROGRES

The work reported here is part of the PROGRES (PROgrammed Graph Rewriting Systems) project. PROGRES is a very high level multi paradigm language for the specification of complex structured data types and their operations. The data structures are modelled as directed, attributed, node and edge labelled graphs (diane graphs). The basic programming constructs of PROGRES are graph rewriting rules (...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • Sci. Comput. Program.

دوره 34  شماره 

صفحات  -

تاریخ انتشار 1999